#include <QApplication>

#include "GLWidget.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QSurfaceFormat format;
    format.setVersion(3, 3);
    format.setProfile(QSurfaceFormat::CompatibilityProfile); // 使用兼容模式
    format.setSamples(4);
    QSurfaceFormat::setDefaultFormat(format);

    GLWidget widget;
    widget.resize(800, 600);
    widget.setWindowTitle("OpenGL Ruler Demo");
    widget.show();

    return app.exec();
}

#include "main.moc"